package ru.ncedu.java.dmsi.robots.model;

public class Point {
    private int x, y;

    public Point() {}
    public Point( Point p ) {
        x = p.x;
        y = p.y;
    }
    public Point( int xx, int yy ) { x = xx; y = yy; }
    public int getX() { return x; }
    public int getY() { return y; }

    @Override
    public boolean equals( Object o ) {
        if (o == null)
            return false;
        if (this == o)
            return true;
        if (getClass() != o.getClass())
            return false;
        Point p = (Point)o;
        return (x == p.x) && (y == p.y);
    }
}
